Update dependency tsoa to v3 - autoclosed #10
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.3.6
->3.9.0
Release Notes
lukeautry/tsoa
v3.9.0
Compare Source
v3.9.0 (2021-07-31)
Full Changelog
Features:
Chores:
v3.8.0
Compare Source
v3.8.0 (2021-05-16)
Full Changelog
Features:
Fixed bugs:
Chores:
v3.7.0
Compare Source
v3.7.0 (2021-04-25)
Full Changelog
Features:
Bugfixes:
Deps:
v3.6.1
Compare Source
v3.6.1 (2021-03-21)
Full Changelog
Fixes:
This restores compatibility with TypeScript <4.1.
v3.6.0
Compare Source
v3.6.0 (2021-03-20)
This version requires TypeScript 4.1. If you are using TS <4.1, please make sure to skip this release and use v3.6.1
Full Changelog
Implemented enhancements:
@Response
decorator #932 (spaguette)Fixes:
v3.5.2
Compare Source
v3.5.2 (2021-02-07)
Full Changelog
Fixed bugs:
Merged pull requests:
v3.5.1
Compare Source
v3.5.1 (2021-01-20)
Full Changelog
Fixes:
v3.5.0
Compare Source
v3.5.0 (2021-01-16)
Full Changelog
TypeScript: Support for TemplateLiteralStrings, Key remapping in Mapped Types.
OpenAPI changes: Support response header definitions based on interfaces and classes #857 (jackey8616)
Framework API: Declare path variables at the Controller level #885 (vincentvanderweele) and adds a new config to automatically send the Status code declared in the
@SuccessResponse
annotation. #850 (devnev)Features:
Fixes:
Chores:
v3.4.0
Compare Source
v3.4.0 (2020-10-18)
Full Changelog
Features:
Fixes:
v3.3.0
Compare Source
v3.3.0 (2020-09-26)
Changes after the alpha:
Full Changelog
Features:
Fixes:
Chores:
Internals:
For a list of all changes since v3.2.1, please refer to v3.3.0-alpha.0:
As always, big thank you to everyone who helped with this release, i.e. by submitting PRs and issues.
v3.2.1
Compare Source
Full Changelog
Bugfix:
v3.2.0
Compare Source
v3.2.0
Full Changelog
Features
Merged pull requests:
v3.1.1
Compare Source
Full Changelog
Bugfix:
v3.1.0
Compare Source
Full Changelog
Features:
@Res()
decorator for typechecked alternative responses #699 (WoH) - DocsBug fixes:
v3.0.8
Compare Source
Full Changelog
Closed issues:
Bugfix:
v3.0.7
Compare Source
Bug Fixes:
#661 introduced an issue that affects TypeScript's transpilation of extending Error microsoft/TypeScript#13965.
We can set the prototype manually and avoid headaches.
v3.0.6
Compare Source
For Upgrades from 2.5, please visit our new docs
Changelog for Beta
Fixed bugs:
Closed issues:
Record\<'foo', string\>
#653Merged pull requests:
Record\<\>
mapped type #662 (Eywek)v3.0.5
Compare Source
New Reference Documentation
Remaining planned breaking changes:
Fix naming for OAS Codegen
Default tag only supports strings
@ symbol in @example for types causes Swagger generation problems
Default output name for the spec
We are planning to offer a setting to change the name of the generated OAS file.
Track the Status of the overall progress towards a stable 3.0 here
Fixed bugs:
New Features:
typeof
#635 (Eywek)@format
support for type aliases #620 (jfrconley)Breaking Changes:
tsoa swagger
is still available for now, but will be removed eventually) #664 (WoH)tsoa.json:
becomes
Instead of duplicating config and handling a lot of edge cases, the new config is a lot simpler.
Config settings, that impact both routes and spec are now located at the top level of the config object.
This means if your settings are different (for example the entry file), you'll have to call the
generateRoutes()
andgenerateSpec()
yourself.Note that these methods now have a simpler config aswell:
EntryFile and noImplicitAdditionalProperties can now be set on the swagger/routesConfig.
Also, boolean settings for noImplicitAdditionalProperties have been removed: #503
Valid settings are now:
'throw-on-extras' | 'silently-remove-extras' | 'ignore'
, everything else falls back to'ignore'
.For reference, see the TS interface of the entire config here
v3.0.4
Compare Source
Features:
(@jfrconley)
Bugfix:
v3.0.3
Compare Source
Installation:
Breaking Changes:
null
, we will no longer mark your optional properties asnullable: true
orx-nullable: true
New Features:
Enums: See #594 for the Spec and #599 and #593
Null Keyword: See #601
https://github.com/lukeautry/tsoa/commit/d3b1bbf4b87bd6838c05ee08bad834d2bff17d1c: Adds the ability to use a colon delimiter instead of bracelets in path (@itamarco)
Bugfixes:
https://github.com/lukeautry/tsoa/commit/55687d7713a5c952d0b5790be763458d4fb3f34e Naming: Trim all whitespace
https://github.com/lukeautry/tsoa/commit/e97d0ca081cf2895ea3821c44e87311fd4f25058 Propagates JsDoc in mapped types
https://github.com/lukeautry/tsoa/commit/13068bd19fd97fe57b05e2eb4f6a3b7d4caed73a correctly propagate field name in validateModel (@fantapop)
Perf:
v3.0.2
Compare Source
Breaking Changes:
This is our third release in the (currently beta) v3 branch of tsoa. All of the v3 releases so far have included breaking changes, so please read the v3.0.1 and v3.0.0 release notes as well.
1) Improve nested object validation
See #574 and #575
2) Change default behavior when no host is defined:
Explicitly set your host in case you want to have absolute urls. This is a breaking change for those who were using OpenAPI 3, but it actually brings tsoa into parity with how we were handling the
host
property in Swagger 2. Previously OpenAPI 3 users had to result to passingnull
which we all felt was strange. Now omittinghost
will cause tsoa to assume the url should be relative.3) Remove .. in fieldErrors (
145222a
):When detecting illegal additional properties (if you are using tsoa setting
additionalProperties: 'throw-on-extras'
), the key on the error would contain an additional dot.{ "TestModel..additionalProp: : { ... } }
This is now fixed and the key is
TestModel.additionalProp
.4) Change naming (| from %7C ->
OR, & from ~AND toAND)SwaggerUI has troubles parsing percent encoded URLs that confirm to the OpenAPI standard.
In order to mitigate issues, we changed some of the names.
Example:
Pick<Model, 'one' | 'two'>
not generates this name in the Spec:Pick_Model.one~OR~two_
We hope this avoids issues and conveniently improves legibility.
Features:
Bugfix:
v3.0.1
Compare Source
v3.0.0
Compare Source
Welcome to the first prerelease in the 3.0 alpha cycle.
New Features:
Support for type aliases
This release comes with proper support for type alias definitions.
They can range from simple scenarios
to more complex scenarios like unions and intersections of aliases
or even generic type aliases:
Please note that this means that tsoa does not only generate the specification (OpenAPI v3 and Swagger2*), but will also validate the input against the types including the jsDoc annotations.
* There may be certain scenarios where we may not be able to generate Swagger 2 from your TypeScript, tsoa will log warnings to infor you about any issues we are aware of.
Support for mapped types
tsoa now works with the ts type checker to resolve mapped types. We will actively try to support all cases, however the test suite for now only covers the utility mapped types typescript ships with, like:
One of the types currently not covered yet is the
Record
type. Please note that this is experimental and there may be cases we unknowingly do not cover yet. Please report any issues you findSupport for conditional types
As of version 2.8, TypeScript supports conditional types. The syntax is very close to the ternary operator and enables expression of 2 (or more) different types based on a condition. Please refer to the TypeScript Handbook for details.
tsoa now works with the ts type checker to resolve conditional types. We will actively try to support most cases, however the test suite for now only covers the utility types typescript ships with, like:
Support for combinations and utility types
The combination of mapped and conditional types allow for powerful utility types like the
Omit
type.Again, experimental, there may be issues, please report.
Breaking changes
In order to support type aliases and avoid name clashes, the names for the generated component schemas / definitions may have changed (generic interfaces are affected mostly).
If you rely on the component names generated from tsoa, this is a breaking change.
Because tsoa supported some type aliases in the past and now generated definitions differently, this may break your code.
If you relied on tsoa not supporting type aliases properly to avoid issues, this may break your code.
Proceed with caution and report issues.
I (@WoH, on behalf of the maintainers) am are excited for your feedback!
ETA?
Feel free to follow the progress of the 3.0.0 release here.
Installation
v2.5.14
Compare Source
With our continuing efforts to work on a stable 3.x, here's a small release to address some bugfixes for 2.5.
Please note that after this release, the default master will point to the 3.x branch, so if you want to work on a feature for 2.5, please target the
2.x
branch starting today.Bugfixes:
v2.5.13
Compare Source
For compatibility reasons, we remove
collectionFormat
for OpenAPI (i.e. Swagger 3). Read more here: https://github.com/lukeautry/tsoa/pull/564v2.5.12
Compare Source
unknown
type: https://github.com/lukeautry/tsoa/pull/559v2.5.11
Compare Source
Two fixes:
v2.5.10
Compare Source
updated our handlebars dependency to ensure we are secure
v2.5.9
Compare Source
Two fixes:
v2.5.8
Includes the fix for https://github.com/lukeautry/tsoa/issues/520
v2.5.6
Compare Source
v2.5.5
Compare Source
Releases this bugfix: https://github.com/lukeautry/tsoa/pull/493
v2.5.4
Compare Source
New Features:
Bug Fixes:
v2.5.3
Enhancements:
''
to be values in enums: https://github.com/lukeautry/tsoa/issues/460Fixes:
extend
keyword: https://github.com/lukeautry/tsoa/issues/467v2.5.1
Compare Source
Our last release included the very-exciting (and much desired) support for anonymous / inline objects and this release included a few fixes for advanced use cases:
v2.5.0
Compare Source
You asked for the ability to not have to always make an interface for every time. We listened. :)
Enjoy our first swing at fixing https://github.com/lukeautry/tsoa/issues/50 which allows you to have inline nested objects without having to define an interface first.
v2.4.11
Compare Source
If you set
specVersion
to be3
in yourtsoa.json
file's swagger configuration, you can now use unions (i.e.IThing | IOtherThing
) and intersections (i.e.IThing & IOtherThing
). Thanks goes out to @WoH for his efforts.Note: This is not available in specVersion 2 because Swagger does not support
oneOf
andallOf
. However, OpenAPI 3.0 does.v2.4.10
"noImplicitAdditionalProperties"
to allow for two different behaviors:"silently-remove-extras"
or"throw-on-extras"
. Read more at: https://github.com/lukeautry/tsoa#how-to-ensure-no-additional-properties-come-in-at-runtimecontrollerPathGlob
was set: https://github.com/lukeautry/tsoa/pull/430v2.4.8
Compare Source
v2.4.7
v2.4.5
Compare Source
routes.ts
file so developers know to not update it manuallyv2.4.4
Compare Source
Major enhancements:
noImplicitAdditionalProperties
which makes theroutes.ts
code enforce that request models don't have any other properties that aren't defined on the interface. Read more here: https://github.com/lukeautry/tsoa#how-to-ensure-no-additional-properties-come-in-at-runtimeSecurity:
yarn audit
againv2.4.3
Compare Source
v2.4.2
Compare Source
v2.4.1
Compare Source
v2.4.0
Compare Source
v2.3.81
Compare Source
v2.3.8
Compare Source
v2.3.7
Compare Source
v2.3.6
Compare Source
v2.3.5
Compare Source
v2.3.4
Compare Source
v2.3.3
Compare Source
v2.3.2
Compare Source
v2.3.1
Compare Source
v2.3.0
Compare Source
v2.2.5
Compare Source
v2.2.4
Compare Source
v2.2.3
Compare Source
v2.2.2
Compare Source
v2.2.1
Compare Source
v2.2.0
Compare Source
v2.1.8
Compare Source
v2.1.7
Compare Source
v2.1.6
Compare Source
v2.1.5
Compare Source
v2.1.4
Compare Source
v2.1.3
Compare Source
v2.1.2
Compare Source
v2.1.1
Compare Source
v2.1.0
Compare Source
v2.0.2
Compare Source
v2.0.1
Compare Source
Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.